home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / pango-1.0 / pango / pango-fontmap.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-04-25  |  3.3 KB  |  96 lines

  1. /* Pango
  2.  * pango-font.h: Font handling
  3.  *
  4.  * Copyright (C) 2000 Red Hat Software
  5.  *
  6.  * This library is free software; you can redistribute it and/or
  7.  * modify it under the terms of the GNU Library General Public
  8.  * License as published by the Free Software Foundation; either
  9.  * version 2 of the License, or (at your option) any later version.
  10.  *
  11.  * This library is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.     See the GNU
  14.  * Library General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU Library General Public
  17.  * License along with this library; if not, write to the
  18.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19.  * Boston, MA 02111-1307, USA.
  20.  */
  21.  
  22. #ifndef __PANGO_FONTMAP_H__
  23. #define __PANGO_FONTMAP_H__
  24.  
  25. #include <pango/pango-font.h>
  26. #include <pango/pango-fontset.h>
  27.  
  28. G_BEGIN_DECLS
  29.  
  30. #define PANGO_TYPE_FONT_MAP              (pango_font_map_get_type ())
  31. #define PANGO_FONT_MAP(object)           (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_FONT_MAP, PangoFontMap))
  32. #define PANGO_IS_FONT_MAP(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_FONT_MAP))
  33.  
  34. typedef struct _PangoContext PangoContext;
  35.  
  36. GType         pango_font_map_get_type       (void) G_GNUC_CONST;
  37. PangoFont *   pango_font_map_load_font     (PangoFontMap                 *fontmap,
  38.                         PangoContext                 *context,
  39.                         const PangoFontDescription   *desc);
  40. PangoFontset *pango_font_map_load_fontset  (PangoFontMap                 *fontmap,
  41.                         PangoContext                 *context,
  42.                         const PangoFontDescription   *desc,
  43.                         PangoLanguage                *language);
  44. void          pango_font_map_list_families (PangoFontMap                 *fontmap,
  45.                         PangoFontFamily            ***families,
  46.                         int                          *n_families);
  47.  
  48. #ifdef PANGO_ENABLE_BACKEND
  49.  
  50. #define PANGO_FONT_MAP_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_FONT_MAP, PangoFontMapClass))
  51. #define PANGO_IS_FONT_MAP_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), PANGO_TYPE_FONT_MAP))
  52. #define PANGO_FONT_MAP_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), PANGO_TYPE_FONT_MAP, PangoFontMapClass))
  53.  
  54. typedef struct _PangoFontMapClass PangoFontMapClass;
  55.  
  56. struct _PangoFontMap
  57. {
  58.   GObject parent_instance;
  59. };
  60.  
  61. struct _PangoFontMapClass
  62. {
  63.   GObjectClass parent_class;
  64.  
  65.   /*< public >*/
  66.   
  67.   PangoFont *   (*load_font)     (PangoFontMap               *fontmap,
  68.                   PangoContext               *context,
  69.                   const PangoFontDescription *desc);
  70.   void          (*list_families) (PangoFontMap               *fontmap,
  71.                   PangoFontFamily          ***families,
  72.                   int                        *n_families);
  73.   PangoFontset *(*load_fontset)  (PangoFontMap               *fontmap,
  74.                   PangoContext               *context,
  75.                   const PangoFontDescription *desc,
  76.                   PangoLanguage              *language);
  77.   
  78.   const char *shape_engine_type;
  79.  
  80.   /*< private >*/
  81.  
  82.   /* Padding for future expansion */
  83.   void (*_pango_reserved1) (void);
  84.   void (*_pango_reserved2) (void);
  85.   void (*_pango_reserved3) (void);
  86.   void (*_pango_reserved4) (void);
  87. };
  88.  
  89. const char   *pango_font_map_get_shape_engine_type (PangoFontMap *fontmap);
  90.  
  91. #endif /* PANGO_ENABLE_BACKEND */
  92.  
  93. G_END_DECLS
  94.  
  95. #endif /* __PANGO_FONTMAP_H__ */
  96.